﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Cinema.Control;

namespace Cinema.GUI
{
    public partial class LogPrompt : Form
    {
        public LogPrompt()
        {
            InitializeComponent();
            Show();
            Activate();
        }

        private void okButton_Click(object sender, EventArgs e)
        {
            if(MainClass.login(unameTextBox.Text.ToString(), passTextBox.Text.ToString()))
            {
                Console.WriteLine("Welcome!");
                Close();
            }
        }
    }
}
